package com.atguigu.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;

public class ConsumerBlockHandler {
    public static CommonResult handlerException1(BlockException blockException){
        return new CommonResult(444,"按客户自定义，global handler exception --- 1");
    }

    public static CommonResult handlerException2(BlockException blockException){
        return new CommonResult(444,"按客户自定义，global handler exception --- 2");
    }
}
